//
//  RechargeCashFieldCell.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/9/7.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class RechargeCashFieldCell: BaseTableViewCell {
    @IBOutlet weak var textField: UITextField!
    
    weak var delegate : RechargeCashVC?

    override func awakeFromNib() {
        super.awakeFromNib()
        contentView.backgroundColor = UIColor.white
        textField.delegate = self
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}



extension RechargeCashFieldCell : UITextFieldDelegate{
    
    func textFieldDidEndEditing(_ textField: UITextField) {
        
        QL1(textField.text)
        
        
           delegate?.pdrAmount = textField.text ?? "0"
            

        
        
    }
    
    
    
    
    
}
